import React from 'react';
import ReactDOM, { render } from 'react-dom';
import './index.css';
import App from './App';

function reactRender() {
  ReactDOM.render(
    <React.StrictMode>
      <App />
    </React.StrictMode>,
    document.getElementById('root')
  );
}

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
// reportWebVitals();

if (!window.__POWERED_BY_QIANKUN__) {
  reactRender();
}else {
  
}

export async function bootstrap() {
  
}
export async function unmount() {
  ReactDOM.unmountComponentAtNode( document.getElementById('root') );
}
export async function mount() {
  reactRender();
}

